package nix.struts.tag;

import com.opensymphony.xwork2.ActionSupport;

public class Demo2Action extends ActionSupport {

	private String name;

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	@Override
	public String execute() throws Exception {

		System.out.println(this.name);
		this.addActionError("出错了！");
		return SUCCESS;
	}
}
